<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ page import="my.market.jdbc.dataClass.Users" %>
<% Users user_mark = (Users) request.getSession().getAttribute("user"); %>
<div id="divhead">
	<table cellspacing="0" class="headtable">
		<tr>
			<td style="text-align:right">
				<a href="#">
					<image src="${pageContext.request.contextPath}/pageDisplay/images/logo.png" width="200" height="60" border="0" />
				</a>
			</td>
			<td style="text-align:right">
				<a href="${pageContext.request.contextPath}/pageDisplay/index.jsp">首页</a>
				| <a href="${pageContext.request.contextPath}/pageDisplay/cart.jsp">购物车</a>
				<% if(user_mark == null) { %>
				| <a href="${pageContext.request.contextPath}/login&register/login&register.jsp">我的账户</a>
				| <a href="${pageContext.request.contextPath}/login&register/login&register.jsp?switch=1">注册</a>
				<% }else{ %>
				| <a href="${pageContext.request.contextPath}/login&register/user.jsp"><img src="../login&register/images/headPortrait/default.jpeg" width="20" height="20"></a>
				| <a href="${pageContext.request.contextPath}/LogoutServlet">退出登录</a>
				<% } %>
			</td>
		</tr>
	</table>
</div>